<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <style>
      * {
        padding: 0px;
        list-style: none;
      }
      .lists {
        border: solid 1px #ddd;
      }
      .lists li {
        border-bottom: solid 1px #ddd;
      }
      .lists li:last-child {
        border-bottom: none !important;
      }
    </style>
    <ul class="lists">
      <li>1</li>
      <li>2</li>
      <li>3</li>
      <li>4</li>
      <li>5</li>
    </ul>
  </body>
</html>
